package com.example.springboot008webmvcconfigurer.Controller;

import com.example.springboot008webmvcconfigurer.pojo.DeviceInfo;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description: TODO
 * @author: uu
 * @data: 2023/7/4 上午 09:05
 * @version: v1.0
 */
@RestController
public class DeviceController {
    @PostMapping("/device")
    public String AddDevice(@RequestParam("device")DeviceInfo deviceInfo){
        return "设备收到的数据"+ deviceInfo.toString();
    }
}
